package com.zryc.shop;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication
@EnableDiscoveryClient // 启用服务注册发现的客户端
@MapperScan("com.zryc.shop.pms.mapper") //@MapperScan注解进行mybatis的Mapper接口扫描
@RestController
public class ProductApp {
    public static void main(String[] args) {
        SpringApplication.run(ProductApp.class, args);//启动springboot应用
    }

    @GetMapping("/")
    public String welcome() {
        return "欢迎访问商品微服务~";
    }
}
